From cdf694d3e410925ccb2de893193c4b688c066c39 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 2 Mar 2004 06:11:48 +0000 Subject: [PATCH] (Fsubstitute_command_keys): Fix counding bytes. --- src/doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc.c b/src/doc.c index 0e22f6d1059..930afc88e23 100644 --- a/src/doc.c +++ b/src/doc.c @@ -821,7 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int start = strp; start_idx = start - SDATA (string); - while ((strp - SDATA (string) < SCHARS (string)) + while ((strp - SDATA (string) < SBYTES (string)) && *strp != '}' && *strp != '>') strp++; -- 2.30.2